Skip to content

docs(pdk-migration): update guide for @aws/nx-plugin 1.0.0-rc.33#787

Open
nx-plugin-for-aws wants to merge 6 commits into
mainfrom
docs/pdk-migration-rc
Open

docs(pdk-migration): update guide for @aws/nx-plugin 1.0.0-rc.33#787
nx-plugin-for-aws wants to merge 6 commits into
mainfrom
docs/pdk-migration-rc

Conversation

@nx-plugin-for-aws

@nx-plugin-for-aws nx-plugin-for-aws commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Reason for this change

The PDK migration guide was pinned to @aws/nx-plugin@0.50.0 and used an old workspace-creation command and pre-1.0 generator names. This validates and updates the guide against the latest 1.0.0-rc.33 release.

I performed a full real migration of the shopping-list tutorial app end-to-end on 1.0.0-rc.33 — including a live AWS deploy, an authenticated end-to-end API test, and teardown — to confirm every step.

Description of changes

  • Workspace creation: replaced the hand-written create-nx-workspace --preset Tabs with the documented <CreateNxWorkspaceCommand> component, pinned to 1.0.0-rc.33 via the tag prop (removed now-unused Tabs/TabItem import).
  • Version pin updated from 0.50.0 to 1.0.0-rc.33 in the point-in-time callout.
  • API generator: use the documented ts#api entry point with framework: 'smithy' (instead of ts#smithy-api directly), and lowercase auth: 'iam' (the enum is now lowercase).
  • Website generators: use the documented ts#website (framework: 'react', ux: 'cloudscape' — the default UX provider changed to shadcn in feat(ts#website): default ux provider to shadcn instead of cloudscape #854 and the shopping list app uses CloudScape) and ts#website#auth entry points (instead of ts#react-website / ts#react-website#auth). Same fix applied to the Type Safe API FAQ snippet.
  • Echo operation: added a step to delete the scaffolded example Echo operation handler (backend/src/operations/echo.ts), which otherwise breaks the build once the operation is removed from the model.
  • @aws-northstar/ui + ace-builds: added a manual step to exclude ace-builds/webpack-resolver from the Vite bundle. Northstar bundles a code editor that uses a webpack-specific import which the current Vite/Rolldown bundler can't resolve; the shopping-list app doesn't use that component, so we externalise it. This is documented as a manual tutorial step under "Add AWS Northstar Dependency" since Northstar isn't part of the website generator. (Re-verified still required on 1.0.0-rc.33.)
  • Local development: the guide now uses the dev target (the serve-local target was removed in favour of dev in feat(nx-plugin): migrate to Nx 23 and standardize on dev target #806). The manual tsx install step was dropped since ts#smithy-api vends tsx as a dev dependency as of fix(ts#smithy-api): add tsx as a dev dependency #786.

Description of how you validated changes

  • Ran the entire migration on a fresh pnpm create @aws/nx-workspace@1.0.0-rc.33 workspace using the exact documented commands.
  • nx run-many --target build passes for all projects.
  • Verified nx dev website runs both the website (4200) and Smithy API (3001) local servers.
  • Deployed to AWS, verified the deployed API works with IAM SigV4 auth (GET → POST → GET → DELETE → GET), verified the CloudFront website serves, then destroyed the stack.
  • Built the docs site (nx build docs) — all pages render without errors.

Issue # (if applicable)

N/A

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions

Copy link
Copy Markdown
Contributor

📚 Documentation translations have been updated and committed (562b566) to this PR.

docs/src/content/docs/es/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/es/snippets/pdk-migration/example/01-migrate-api.mdx
docs/src/content/docs/es/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/es/snippets/pdk-migration/faq/type-safe-api.mdx
docs/src/content/docs/fr/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/fr/snippets/pdk-migration/example/01-migrate-api.mdx
docs/src/content/docs/fr/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/fr/snippets/pdk-migration/faq/type-safe-api.mdx
docs/src/content/docs/it/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/it/snippets/pdk-migration/example/01-migrate-api.mdx
docs/src/content/docs/it/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/it/snippets/pdk-migration/faq/type-safe-api.mdx
docs/src/content/docs/jp/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/jp/snippets/pdk-migration/example/01-migrate-api.mdx
docs/src/content/docs/jp/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/jp/snippets/pdk-migration/faq/type-safe-api.mdx
docs/src/content/docs/ko/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/ko/snippets/pdk-migration/example/01-migrate-api.mdx
docs/src/content/docs/ko/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/ko/snippets/pdk-migration/faq/type-safe-api.mdx
docs/src/content/docs/pt/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/pt/snippets/pdk-migration/example/01-migrate-api.mdx
docs/src/content/docs/pt/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/pt/snippets/pdk-migration/faq/type-safe-api.mdx
docs/src/content/docs/vi/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/vi/snippets/pdk-migration/example/01-migrate-api.mdx
docs/src/content/docs/vi/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/vi/snippets/pdk-migration/faq/type-safe-api.mdx
docs/src/content/docs/zh/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/zh/snippets/pdk-migration/example/01-migrate-api.mdx
docs/src/content/docs/zh/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/zh/snippets/pdk-migration/faq/type-safe-api.mdx

nx-plugin-for-aws and others added 2 commits June 10, 2026 12:36
Use a string module id instead of a regex literal for the ace-builds
external entry. The regex literal inside the diff code block was
mangled by the documentation translation step, producing invalid MDX
in translated files and breaking the docs build.
@github-actions

Copy link
Copy Markdown
Contributor

📚 Documentation translations have been updated and committed (314ee90) to this PR.

docs/src/content/docs/es/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/fr/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/it/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/jp/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/ko/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/pt/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/vi/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/zh/snippets/pdk-migration/example/02-migrate-website.mdx

@codecov-commenter

codecov-commenter commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.71%. Comparing base (283bb93) to head (9d075db).
⚠️ Report is 104 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #787      +/-   ##
==========================================
+ Coverage   87.22%   87.71%   +0.48%     
==========================================
  Files         140      157      +17     
  Lines        4987     5788     +801     
  Branches     1164     1377     +213     
==========================================
+ Hits         4350     5077     +727     
- Misses        338      362      +24     
- Partials      299      349      +50     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

- Bump the pinned version from 1.0.0-rc.10 to 1.0.0-rc.33
- Drop the manual tsx install step: ts#smithy-api vends tsx as a dev
  dependency since #786
- Rename the serve-local target to dev following #806
- Pass ux=cloudscape to ts#website since the default changed to shadcn
  in #854 (the shopping list app uses CloudScape components)
- Fix the vite.config.mts outDir shown in the ace-builds diff context
  to match the generated config (bundle subdirectory)

Validated by running the full migration end-to-end on a fresh
1.0.0-rc.33 workspace, including a live AWS deploy, authenticated
GET/POST/DELETE API tests and teardown.
@nx-plugin-for-aws nx-plugin-for-aws changed the title docs(pdk-migration): update guide for @aws/nx-plugin 1.0.0-rc.10 docs(pdk-migration): update guide for @aws/nx-plugin 1.0.0-rc.33 Jul 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📚 Documentation translations have been updated and committed (819057a) to this PR.

docs/src/content/docs/es/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/es/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/fr/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/fr/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/it/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/it/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/jp/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/jp/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/ko/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/ko/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/pt/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/pt/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/vi/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/vi/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/zh/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/zh/snippets/pdk-migration/example/02-migrate-website.mdx

@github-actions

Copy link
Copy Markdown
Contributor

📚 Documentation translations have been updated and committed (8aaf5ed) to this PR.

docs/src/content/docs/es/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/es/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/fr/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/fr/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/it/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/it/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/jp/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/jp/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/ko/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/ko/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/pt/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/pt/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/vi/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/vi/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/zh/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/zh/snippets/pdk-migration/example/02-migrate-website.mdx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants